package com.fzb.forum4j.dao.impl;

import java.io.File;

import org.springframework.stereotype.Repository;

import com.fzb.forum4j.dao.api.IUserDetailsDao;
import com.fzb.forum4j.po.User;
import com.fzb.forum4j.po.UserDetails;
@Repository("userDetailsDaoImpl")
public class UserDetailsDaoImpl extends HibBaseImpl<UserDetails> implements IUserDetailsDao{


	public UserDetails loadUserDetailsByUser(User user){
		return (UserDetails) getSession().createQuery("select t from UserDetails t where t.user.userId=:userId").setParameter("userId", user.getUserId()).uniqueResult();
	}
 
}
 